-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connect My Computer: Join cluster #29479
Conversation
e054576
to
7628d06
Compare
7628d06
to
365a5c4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't run it yet, but the general idea behind the implementation seems good. As I mentioned in the last comment, let's set up a call to talk about some details related to async orchestration.
...m/src/ui/ConnectMyComputer/DocumentConnectMyComputerSetup/DocumentConnectMyComputerSetup.tsx
Show resolved
Hide resolved
web/packages/teleterm/src/ui/services/connectMyComputer/connectMyComputerService.ts
Outdated
Show resolved
Hide resolved
...m/src/ui/ConnectMyComputer/DocumentConnectMyComputerSetup/DocumentConnectMyComputerSetup.tsx
Show resolved
Hide resolved
…d on `runtimeSettings` and `rootClusterUri`. Pass `rootClusterUri` instead of `profileName` `createAgentFile`
365a5c4
to
7ad0e97
Compare
7ad0e97
to
72eaf48
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to review changes to the document on Monday.
...m/src/ui/ConnectMyComputer/DocumentConnectMyComputerSetup/DocumentConnectMyComputerSetup.tsx
Outdated
Show resolved
Hide resolved
web/packages/teleterm/src/mainProcess/processKiller/processKiller.test.ts
Outdated
Show resolved
Hide resolved
web/packages/teleterm/src/mainProcess/processKiller/processKiller.test.ts
Outdated
Show resolved
Hide resolved
web/packages/teleterm/src/mainProcess/processKiller/processKiller.ts
Outdated
Show resolved
Hide resolved
web/packages/teleterm/src/mainProcess/processKiller/processKiller.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there's a type error related to types, could you take a look at it? I didn't manage to find time to actually run the code anyway, will continue tomorrow.
web/packages/teleterm/src/ui/ConnectMyComputer/connectMyComputerContext.tsx
Outdated
Show resolved
Hide resolved
web/packages/teleterm/src/mainProcess/agentRunner/agentRunner.ts
Outdated
Show resolved
Hide resolved
web/packages/teleterm/src/mainProcess/agentRunner/agentRunner.ts
Outdated
Show resolved
Hide resolved
# Conflicts: # web/packages/teleterm/src/mainProcess/fixtures/mocks.ts # web/packages/teleterm/src/mainProcess/runtimeSettings.ts # web/packages/teleterm/src/mainProcess/types.ts # web/packages/teleterm/src/ui/Documents/DocumentsRenderer.tsx
web/packages/teleterm/src/mainProcess/terminateWithTimeout/terminateWithTimeout.ts
Outdated
Show resolved
Hide resolved
...m/src/ui/ConnectMyComputer/DocumentConnectMyComputerSetup/DocumentConnectMyComputerSetup.tsx
Show resolved
Hide resolved
web/packages/teleterm/src/ui/ConnectMyComputer/connectMyComputerContext.tsx
Outdated
Show resolved
Hide resolved
… to check signal and code every time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good. 👍
I have a feeling we might have missed some edge cases, but it'll be much easier to iron them out with the full lifecycle being controllable from the UI.
...m/src/ui/ConnectMyComputer/DocumentConnectMyComputerSetup/DocumentConnectMyComputerSetup.tsx
Show resolved
Hide resolved
Friendly ping @avatus |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only did a code review and didn't find anything both of you didn't already discuss. I didn't get a chance to try it locally, sorry.
Very impressive stuff tho, the quality is top notch imo (as usual)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bot!
Contributes to #27881
This PR adds the final step of the setup process - running the agent and joining the cluster.
More info in the RFD https://github.com/gravitational/teleport/blob/master/rfd/0133-connect-my-computer.md#joining-the-cluster.
Some notes on the changes:
profileName
to the function in the main process. It was the only thing that necessary for the function. However, when launching the agent, it is more convenient to relay onRootClusterUri
, especially when sending updates to the renderer. I decided to switch toRootClusterUri
everywhere, to be consistent.